<?php


namespace App\Http\Util;


class Err
{
    /**
     * 常用状态码1-999
     */
    const SUCCESS = [200, '成功'];
    const UNKNOWN_ERROR = [1, '未知错误'];
    const VALIDATE_ERROR = [2, '验证错误'];
    const LOGIN_ERROR = [3, '账号或密码错误'];
    const LOGIN_STATUS_ERROR = [4, '登录状态错误'];
    const CREATE_TOKEN_ERROR = [5, '创建token错误'];
    const ROUTE_ERROR = [6, '路由错误'];
    const AUTH_ERROR = [7, '权限错误'];
    const NO_AUTH = [8, '无权限访问'];
    const GET_LOGIN_ERROR = [9, '获取登录态信息错误'];
    const NO_LEADER = [10, '不是管理人员'];
    const DEL_ERROR = [11, '删除失败'];
    const EMAIL_ERROR = [12, '电子邮箱已存在'];
    const SYNC_ERROR = [13, '同步失败'];
    const NO_SAME_ERROR = [14, 'IP或账户或名称不一致'];
    const DATE_ERROR = [15, '合同起始终止时间错误'];
    const DEPARTMENT_ERROR = [16, '部门错误'];
    const BRAND_ERROR = [17, '品牌错误'];
    const GET_DATA_ERROR = [18, '获取数据失败'];
    const SET_MESSAGE_ERROR = [19, '添加消息失败'];
    const LOGOUT_ERROR = [0, '退出失败'];
    const ERROR_PARAMS = [400, '参数错误'];
    const TOKEN_EXPIRE = [50014, '登录态过期'];
    const HEAD_ERROR = [1001,'头像保存失败'];
    const DEL_HIDE = 0;//软删除 0=删除 1=存在
    const DEL_SHOW = 1;
    /**
     * 前台状态码1000-1999
     */

    /**
     * 后台状态码2000-3000
     */
    const EXAMINE_CREATE = 1; // 审核编辑类型：创建
    const EXAMINE_UPDATE = 2;// 审核编辑类型：修改
    const WORK_SUCCESS = 1;// 可用
    const WORK_ERROR = 2;//禁用
    const NORMAL_LIMIT = 10;// 通用pagesize
    const NORMAL_PAGE = 1;//默认页数
    const CREATE_ERROR = [1001, '添加失败'];
    const UPDATE_ERROR = [1002, '更新失败'];
    const DELETE_ERROR = [1003, '删除失败'];
    const DATA_STATUS_DELETE = 2;  //已删除
    const DATA_STATUS_OK = 1;  //正常
    const EXAMINE_STATUS_NORMAL = 1;//正常
    const DATA_STATUS_UNPUBLISH  = 2; // 未发布
    const DATA_STATUS_PUBLISH  = 1; // 发布


    /**
     * member
     */
    const MEMBER_VIP = 1;
    const MEMBER_NORMAL = 0;
    const MEMBER_STATUS_OK = 'enable';
    const MEMBER_STATUS_ERROR = 'disable';
    const MEMBER_LOGIN_MOBILE = 2;
    const MEMBER_LOGIN_WECHAT = 1;
    const ORDER_NOMAL = 1;
    const ORDER_CONSTOM = 2;
    const ORDER_ERROR = 0;
    const ORDER_SUCCESS = 1;
    const ORDER_WX_PAY = 1;
    const ORDER_ALI_PAY = 2;
}
